﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;


namespace SilverLeikur
{
    public partial class Page : UserControl
    {

 
        public Page()
        {

            InitializeComponent();
        
        }

        private void FUCK_Click(object sender, RoutedEventArgs e)
        {
          prufa game = new prufa();

            FUCK.Visibility = Visibility.Collapsed;

            Button lolol = new Button();
            lolol.Content = "fu";
            lolol.Height = 20;
            lolol.Width = 60;
            lolol.Visibility = Visibility.Visible;
            LayoutRoot.Children.Add(lolol);

            Rectangle bluh = new Rectangle();
            bluh.Visibility = Visibility.Visible;

            SolidColorBrush mySolidColorBrush = new SolidColorBrush();
            mySolidColorBrush.Color = Color.FromArgb(255, 0, 0, 255);

            bluh.Fill = mySolidColorBrush; 
            bluh.Width = 50;
            bluh.Height = 50;
            bluh.HorizontalAlignment = HorizontalAlignment.Left;

            object gildi;
            gildi = bluh.VerticalAlignment;

                   

            LayoutRoot.Children.Add(bluh);
           

           // LayoutRoot.Visibility = Visibility.Collapsed;
          //  game.GOGO();
     

        }





    }
}
